package com.example.xcxhouduan.service;
import com.example.xcxhouduan.bean.Product;
import com.example.xcxhouduan.bean.Restaurants;
import com.example.xcxhouduan.dao.restMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class restService {
    @Autowired
    private restMapper rM;
    private Product product;

    public List<Restaurants> restSelect() {
        List<Restaurants> restList = rM.selectList(null);

        return restList;
    }
}
